import axios from 'axios';

// axios插件
const address = 'http://localhost:5000';
// export default axios.create({
//   method: 'post',
//   baseUrl: address,
// })
export default function myaxios(path) {
  new Promise((resolve, reject) => {
    axios({
      method: 'post',
      url: address + path,
    }).then((response) => {
      resolve(response);
    }, (error) => {
      reject(error);
    });
  }).then((value) => {
    console.log(value);
  });
}
